<%--
  Created by IntelliJ IDEA.
  User: Adminstrator
  Date: 2020/3/10
  Time: 17:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Emp列表</title>
    <script type="text/css">
        table{
            border: 1px solid black;
        }
    </script>
</head>
<body>
    <div>
        <h1>人员信息列表</h1>
        <a href="/emp/addForm">新增人员</a>
        <table>
            <thead>
            <tr>
                <th>编号</th>
                <th>姓名</th>
                <th>职位</th>
                <th>就职日期</th>
                <th>薪资</th>
                <th>部门编号</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach var="emp" items="${list}">
                <tr>
                    <td>${emp.empno}</td>
                    <td>${emp.ename}</td>
                    <td>${emp.job}</td>
                    <td>${emp.hireDate}</td>
                    <td>${emp.sal}</td>
                    <td>${emp.deptno}</td>
                    <td><a href="/emp/remove?empno=${emp.empno}">删除</a>/<a href="/emp/find?empno=${emp.empno}">修改</a></td>
                </tr>
            </c:forEach>

            </tbody>
        </table>
    </div>
</body>
</html>
